package com.zc.im.util;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/7/7.
 */
public class ImGolbalTypeContext implements Serializable{

    public final static Map<String, String> propertiesMap = new HashMap<>();




    public final static String IM_TARGET_USER_ID = "targetId";
    public final static String IM_USER_ID = "userId";
    public final static String IM_TYPE = "type";
    public final static String IM_CREATE = "create";// 创建
    public final static String IM_JOIN = "join";// 用户进入
    public final static String IM_MSGTO = "msgTo";// 点对点聊天
    public final static String IM_LEAVE = "leave";// 离开
    public final static String IM_INFO = "info";// 系统信息
    public final static String IM_MSGFROM = "msgFrom";// 消息来源
    public final static String IM_GROUP_ID = "imGroupId";
    public final static String IM_SESSION_ID = "sessionId";
    public final static String IM_PHPSESSID = "PHPSESSID";


    public final static String IM_MSG_TYPE_TO_GROUP = "im_people_to_group";// 个人与群组聊天
    public final static String IM_MSG_TYPE_TO_PEOPLE = "msg";// 个人与企业聊天
    public final static String IM_MSG_TYPE_TO_READ_STATUS = "read_status";// 个人与群组聊天
    public final static String IM_MSG_TYPE_TO_CUSTOMER_SERVICE = "customer_service";// 个人与群组聊天

    public final static String IM_SEND_USER_TYPE  = "sendUserType";// 个人与企业聊天
    public final static String IM_CUSTOMER_SERVICE_LOGIN = "customer_service_login";
    public final static String IM_CUSTOMER_SERVICE = "customer_service";// 与客服绑定
    public final static Integer IM_PERSONAL = 2;// 个人
    public final static Integer IM_ENTERPRISE = 1;// 企业
    public final static Integer IM_PERSONALXC = 9;// 个人小畅
    public final static Integer IM_ENTERPRISEXC = 10;// 企业小畅
    public final static String IM_USER_NAME = "admin";// Activemq用户名
    public final static String IM_PASS_WORD = "admin";// Activemq密码
    public final static String IM_url = "tcp://127.0.0.1:61616";// activemqURL

    public final static String IM_MSG_TYPE_GROUP = "group";
    public final static String IM_MSG_TYPE_PEOPLE = "people";
    public final static String IM_MSG_TYPE_CUSTOMER_SERVICE = "customer_service";
    public final static String IM_MSG_READ_STATUS_UNREAD = "unread";//未读
    public final static String IM_MSG_READ_STATUS_READ = "read";//已读

    public final static String IM_MSG_TO_RESUME_URL = "http://www.tazhaowo.com/Sresume/resumeDetail/res_id/";//简历的url+id

    public final static String IM_MSG_TO_PEOPLE_REFUSE_RESUME ="peopleRefuseResume";//个人不同意发送简历
    public final static String IM_MSG_TO_COMPANY_REFUSE_RESUME = "companyRefuseResume";//企业不同意发送简历
    public final static String IM_MSG_TO_PEOPLE_AGREE_RESUME = "peopleAgreeResume";//个人同意发送简历
    public final static String IM_MSG_TO_COMPANY_AGREE_RESUME = "companyAgreeResume";//企业同意发送简历
    public final static String IM_MSG_TO_COMPANY_GET_RESUME = "companygetResume";//企业获取简历
    public final static String IM_MSG_TO_PEOPLE_GET_RESUME = "peoplegetResume";//个人获取简历



    public final static String IM_MSG_TO_GET_PEOPLE_TELEPHONE = "getPeopleTelephone";//个人获得联系方式
    public final static String IM_MSG_TO_GET_COMPANY_TELEPHONE = "getCompanyTelephone";//企业获得联系方式
    public final static String IM_MSG_TO_PEOPLE_AGREE_TELEPHONE = "peopleyAgreeTelephone";//个人同意交换联系方式
    public final static String IM_MSG_TO_COMPANY_AGREE_TELEPHONE = "companyAgreeTelephone";//企业同意交换联系方式
    public final static String IM_MSG_TO_PEOPLE_REFUSE_TELEPHONE = "peopleRefuseTelephone";//个人不同意交换联系方式
    public final static String IM_MSG_TO_COMPANY_REFUSE_TELEPHONE ="companyRefuseTelephon";//企业不同意交换联系方式

    public final static String IM_HEARTBEAT = "heartbeat";//心跳检测

    //状态  生效
    public final static String STATUS_VALID = "valid";
    //状态  失效
    public final static String STATUS_INVALID = "invalid";

    //用户签user_sign
    public final static String SIGN_MODE_USER_SIGN="user_sign";

    //系统签到 sys_sign'
    public final static String SIGN_MODE_SYS_SIGN="sys_sign";
    //审批通过pass
    public final static String  AUDIT_PASS="pass";
    //审批未通过 refuse
    public final static String  AUDIT_REFUSE="refuse";

    //正常 ：normal
    public final static String    NORMAL_SIGN_STATUS_NORMAL="normal";
    //非正常：abnormal'
    public final static String     NORMAL_SIGN_STATUS_ABNORMAL="abnormal";



    public final static String IM_GROUP_TYPE_COMPANY ="company";
    public final static String IM_GROUP_TYPE_PEOPLE ="people";

    public final static Integer PAGEHELPER_PAGENUM = 1;
    public final static Integer PAGEHELPER_PAGESIZE = 10;

    public final static String IM_CUSTOMER_SERVICE_INFO ="im_customer_service_info";

    //群组
    public final static String IM_DIRECTORY_ADD_SOURCE_GROUP ="im_directory_add_source_group";
    //职位
    public final static String IM_DIRECTORY_ADD_SOURCE_POSITON ="im_directory_add_source_positon";
    //电话
    public final static String IM_DIRECTORY_ADD_SOURCE_PHONE ="im_directory_add_source_phone";
    //真实姓名
    public final static String IM_DIRECTORY_ADD_SOURCE_NAME ="im_directory_add_source_name";
    //职位简历
    public final static String IM_DIRECTORY_ADD_SOURCE_POSITION_RESUME ="im_directory_add_source_position_resume";
    //职位好友
    public final static String IM_DIRECTORY_ADD_SOURCE_POSITION_FRIENDS ="im_directory_add_source_position_friends";
    //职位联系方式
    public final static String IM_DIRECTORY_ADD_SOURCE_POSITION_PHONE ="im_directory_add_source_position_phone";
    //单向
    public final static String IM_DIRECTORY_FRIENDS_RELATION_ONE_WAY ="im_directory_friends_relation_one_way";
    //双向
    public final static String IM_DIRECTORY_FRIENDS_RELATION_TWO_WAY ="im_directory_friends_relation_two_way";

    //  大学生
    public final static String IM_DEF_DIRECTORY_GROUP_COLLEGE_STUDENT = "COLLEGE_STUDENT";
    //  BOSS
    public final static String IM_DEF_DIRECTORY_GROUP_BOSS = "BOSS";
    //  部门负责人
    public final static String IM_DEF_DIRECTORY_GROUP_DEPARTMENT_MANAGER = "DEPARTMENT_MANAGER";
    //  猎头公司
    public final static String IM_DEF_DIRECTORY_GROUP_HEAD_HUNTING_COMPANY = "HUNTING_COMPANY";
    //  同学
    public final static String IM_DEF_DIRECTORY_GROUP_CLASSMATE = "CLASSMATE";
    //  同行
    public final static String IM_DEF_DIRECTORY_GROUP_SAME_INDUSTRY = "SAME_INDUSTRY ";
    //  同事
    public final static String IM_DEF_DIRECTORY_GROUP_COLLEAGUE = "COLLEAGUE";

    // BOSS/部门负责人
    public final static String IM_DEF_DIRECTORY_GROUP_BOSS_MANAGER = "BOSS_AND_MANAGER";
    // 同学/同事/同行
    public final static String IM_DEF_DIRECTORY_GROUP_CLASSMATE_AND_SAME_INDUSTRY_AND_COLLEAGUE = "CLASSMATE_AND_SAME_INDUSTRY_AND_COLLEAGUE";
    //感兴趣的
    public final static String IM_DEF_DIRECTORY_GROUP_INTERESTED = "INTERESTED";
    //未分组好友
    public final static String IM_DEF_DIRECTORY_GROUP_NON_GROUPED_FRIENDS = "NON_GROUPED_FRIENDS";


    //公司
    public final static Integer IM_USER_TYPE_COMPANY = 1;
    //个人
    public final static Integer IM_USER_TYPE_PEOPLE = 2;
    //猎头
    public final static Integer IM_USER_TYPE_HEADHUNTING = 3;
    //大学生
    public final static Integer IM_USER_TYPE_COLLEGE_STUDENT = 4;

    //通讯录组只读
    public final static String IM_DIRECTORY_GROUP_SUPPORT_READONLY = "support_readonly";
    //通讯录组可修改
    public final static String IM_DIRECTORY_GROUP_SUPPORT_MODIFY = "support_modify";

    public final static String NETTY_HOST_NAME = "nettyHostName";

    public final static String NETTY_PORT = "nettyPort";

    public final static String NETTY_MAXCONTENT_LENGTH = "nettyMaxContentLength";
    public final static String NETTY_CLOSE_ON_EXPECTATION_FAILED = "nettyCloseOnExpectationFailed";
    public final static String NETTY_WS_URI = "nettyWsUri";
    public final static String NETTY_WEB_SOCKET_PATH = "nettyWebsocketPath";
    public final static Integer IM_MSG_TYPE_ERROR = 1003;//json错误。为发现type


    public final static String IM_SESSEION_UID = "uid";

    public final static String IM_SESSEION_USERTYPE = "usertype";

    public final static String IM_SESSEION_FULLNAME = "fullname";

    public final static String IM_SESSEION_PHONE = "phone";



}
